import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import {MessageBox} from "element-ui"
import 'element-ui/lib/theme-chalk/index.css';
import '@/until/css.css';
import VueLazyLoad from 'vue-lazyload'
Vue.use(VueLazyLoad, {
  preLoad: 1,
  loading: require('./until/loading.gif')//使用,地址图片为预加载图片
})
import axios from 'axios'

Vue.use(ElementUI);
Vue.config.productionTip = false;
Vue.prototype.axios=axios
Vue.component(MessageBox.name, MessageBox); // 全局注册组件， 若使用Vue.use()会再初始时候执行一次，有bug
	Vue.prototype.$message = MessageBox;

  import 'default-passive-events';


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
